package com.XinYun.Library.modules.display.entity;

public class book {
    private String bookname;
    private int num;
    private int loan;
    private int like;

    public book() {
    }

    public book(String bookname, int num, int loan, int like) {
        this.bookname = bookname;
        this.num = num;
        this.loan = loan;
        this.like = like;
    }

    /**
     * 获取：书名
     * @return
     */
    public String getBookname() {
        return bookname;
    }

    public void setBookname(String bookname) {
        this.bookname = bookname;
    }

    /**
     * 获取：数量
     * @return
     */
    public int getNum() {
        return num;
    }

    public void setNum(int num) {
        this.num = num;
    }

    /**
     * 获取：阅量
     * @return
     */
    public int getLoan() {
        return loan;
    }

    public void setLoan(int loan) {
        this.loan = loan;
    }
    /**
     * 获取：点赞次数
     * @return
    */
    public int getLike() {
        return like;
    }

    public void setLike(int like) {
        this.like = like;
    }

    @Override
    public String toString() {
        return "book{" +
                "书名：'" + bookname + '\'' +
                ", 数量：" + num +
                ", 借阅次数：" + loan +
                ", 点赞次数：" + like +
                '}';
    }
}
